
<div class="ncs-message-bar">
    <div class="default">
        <h3 class="store-title">在线客服</h3>
    </div>
    <?php if(!empty($store_info['store_presales']) || !empty($store_info['store_aftersales']) || $store_info['store_workingtime'] !=''){?>
    <div class="service-list" store_id="<?php echo $store_info['store_id'];?>" store_name="<?php echo $store_info['store_name'];?>">
        <?php if(!empty($store_info['store_presales'])){?>
        <dl>
            <dt><img src="__SHOP_DEFAULT__/custom/images/icon/store-keFu.png" alt="">售前客服：</dt>
            <?php foreach($store_info['store_presales'] as $val){?>
            <dd><span>
        <?php if($val['type'] == 1){?>
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $val['num'];?>&site=qq&menu=yes" title="QQ: <?php echo $val['num'];?>">
                	<img border="0" src="__SHOP_DEFAULT__/custom/images/icon/store-keFu-icon.png" style=" vertical-align: middle;"/></a>
                <?php }elseif($val['type'] == 2){?>
                <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $val['num'];?>&site=cntaobao&s=1&charset=<?php echo CHARSET;?>" >
                	<img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo $val['num'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" alt="<?php echo $lang['nc_message_me'];?>"/></a>
                <?php }elseif($val['type'] == 3){?>
                <span c_name="<?php echo $val['name'];?>" member_id="<?php echo $val['num'];?>"></span>
                <?php }?>
        </span>
                <span><?php echo $val['name']?></span>
            </dd>
            <?php }?>
        </dl>
        <?php }?>
        <?php if(!empty($store_info['store_aftersales'])){?>
        <dl>
            <dt><img src="__SHOP_DEFAULT__/custom/images/icon/store-keFu.png" alt=""><?php echo $lang['nc_message_service'];?></dt>
            <?php foreach($store_info['store_aftersales'] as $val){?>
            <dd><span>
        <?php if($val['type'] == 1){?>
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $val['num'];?>&site=qq&menu=yes" title="QQ: <?php echo $val['num'];?>">
                	<img border="0" src="__SHOP_DEFAULT__/custom/images/icon/store-keFu-icon.png" style=" vertical-align: middle;"/></a>
                <?php }elseif($val['type'] == 2){?>
                <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $val['num'];?>&site=cntaobao&s=1&charset=<?php echo CHARSET;?>" >
                	<img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo $val['num'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" alt="<?php echo $lang['nc_message_me'];?>"/></a>
                <?php }elseif($val['type'] == 3){?>
                <span c_name="<?php echo $val['name'];?>" member_id="<?php echo $val['num'];?>"></span>
                <?php }?>
        </span>
                <span><?php echo $val['name']?></span>
            </dd>
            <?php }?>
        </dl>
        <?php }?>
        <?php if($store_info['store_workingtime'] !=''){?>
        <dl class="workingtime">
            <dt><img src="__SHOP_DEFAULT__/custom/images/icon/store-keFu.png" alt="">工作时间：</dt>
            <dd>
                <p><?php echo html_entity_decode($store_info['store_workingtime']);?></p>
            </dd>
        </dl>
        <?php }?>
    </div>
    <?php }?>
</div>